<template>
    <scroll class="content" ref="scroll">
        <div class="cart-list">
            <cart-list-item v-for="(item,index) in carList" :cartItem="item" :key="index"></cart-list-item>
        </div>
    </scroll>
    
</template>

<script>
import {mapGetters} from 'vuex'

import Scroll from 'components/common/scroll/Scroll'
import CartListItem from './CartListItem.vue'

export default {
    components: {
        Scroll,
        CartListItem
    },
    computed: {
        ...mapGetters(['carList'])
    },
    activated() {
        this.$refs.scroll.refresh()
    }
}
</script>


<style scoped>
    .content{
        height: calc(100% - 44px - 49px - 40px);
        overflow: hidden;
    }
</style>